#include <iostream>
using namespace std;

class Date
{
public:
    Date(int year = 1, int month = 1, int day = 1)
    {
        _year = year;
        _month = month;
        _day = day;
    }
    bool operator==(const Date &d)
    {
        return _year == d._year &&
               _month == d._month &&
               _day == d._day;
    }
    bool operator<(const Date &d)
    {
        if (_year < d._year)
        {
            return true;
        }

        else if (_year == d._year)
        {
            if (_month < d._month)
            {
                return true;
            } 
            else if (_month == d._month)
            {
                if (_day < d._day)
                {
                    return true;
                }
            }
        }
        return false;
    }
    Date &operator=(const Date &d)
    {
        if (this != &d)
        {
            _year = d._year;
            _month = d._month;
            _day = d._day;
        }
        return *this;
    }

private:
    int _year;
    int _month;
    int _day;
};

int main()
{
    Date d1(2024, 12, 25);
    Date d2(2024, 12, 6);
    cout << (d1 < d2) << endl;
    return 0;
}